import request from "@/utils/request.js";


/**
 * 
 *	抽奖活动详情

 */
export function lottery_info(data) {
	return request.get("/api/lottery/info/1", data, {
		loading: false,
		loadText: '',
	})
}
/**
 * 
 *	用户抽奖

 */
export function startLottery(data) {
	return request.post("/api/lottery/index", data, {
		loading: false,
		loadText: '',
	})
}
/**
 * 
 *	用户增加抽奖次数

 */
export function add_user_lottery(data) {
	return request.post("/api/lottery/add_user_lottery", data, {
		loading: false,
		loadText: '',
	})
}

/**
 * 
 *	用户中奖记录列表

 */
export function user_record(data) {
	return request.get("/api/lottery/record", data, {
		loading: false,
		loadText: '',
	})
}
/**
 * 
 *	用户中奖详情

 */
export function record_info(data) {
	return request.get("/api/lottery/record_info/"+data.id, {}, {
		loading: false,
		loadText: '',
	})
}

